<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <p v-for="item in list">
      {{item}}
    </p>
    <button @click="hSub">length-1</button>
  </div>
  <!-- <script src="https://libs.cdnjs.net/vue/3.0.0-rc.5/vue.global.js"></script> -->
  <script src="./vue.global.js"></script>

  <script>
    const app = {
      data () {
        return {
          list: [1,2,3]
        }
      },
      methods: {
        hSub () {
          this.list.length--
        }
      }
    }
  	
    const vm = Vue.createApp(app).mount('#app')
    console.log(vm)
  </script>
</body>
</html>